package com.eol.common.config.converter;

import org.springframework.core.convert.converter.Converter;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: liulinhui
 * Date: 8/7/19
 * Time: 8:02 PM
 * Description: StringToDateConverter
 */
public class StringToDateConverter implements Converter<String, Date> {

    @Override
    public Date convert(String source) {
        return StringToDateUtil.convert(source);
    }
}
